Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Properly encode content-disposition header #31

Merged
merged 3 commits into from
Jun 30, 2020
Merged

Properly encode content-disposition header #31

merged 3 commits into from
Jun 30, 2020

Conversation

fredden
Copy link
Contributor

@fredden fredden commented Jan 10, 2020

Q A
Documentation no
Bugfix yes
BC Break no
New Feature yes
RFC no
QA no

Description

Fixes: #2

This is a port of zendframework/zend-mail#251 to this repository per zendframework/zend-mail#251 (comment).

When using UTF-8 encoding, this codebase was producing a header being of Content-Disposition: =?utf-8?Q?inline?= which is not interpreted properly by Thunderbird nor Microsoft Outlook. This pull request introduces specific handling of this header, so that inline will never be encoded as UTF-8 and therefore cannot be misinterpreted by some user agents.

This is a proper fix for magento/magento2#25076. The work-around applied there was to no longer set a content-disposition header.

fredden added 3 commits April 1, 2020 17:17
Signed-off-by: Dan Wallis <mrdanwallis@gmail.com>
Signed-off-by: Dan Wallis <mrdanwallis@gmail.com>
weierophinney added a commit that referenced this pull request Jun 30, 2020
Signed-off-by: Matthew Weier O'Phinney <matthew@weierophinney.net>
@weierophinney
Copy link
Member

Thanks, @fredden! Merged to develop for release with 2.11.0.

@weierophinney weierophinney merged commit bdab8ce into laminas:master Jun 30, 2020
@glensc
Copy link
Contributor

glensc commented Jun 30, 2020

This looks like huge copy-paste from some other class... 🤔

@fredden fredden deleted the content-disposition branch April 12, 2021 18:12
artemii-karkusha pushed a commit to artemii-karkusha/laminas-mail that referenced this pull request May 24, 2023
Properly encode content-disposition header
artemii-karkusha pushed a commit to artemii-karkusha/laminas-mail that referenced this pull request May 24, 2023
Signed-off-by: Matthew Weier O'Phinney <matthew@weierophinney.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Properly encode content-disposition header
4 participants